import pickle
import matplotlib.pyplot as plt
with open('Exp1/LOSS_es.pkl', 'rb') as file:
    LOSS_es_loaded = pickle.load(file)

fig = plt.figure(figsize=(12,8))
plt.title("Loss",fontsize=12)
plt.plot(LOSS_es_loaded)
plt.savefig('loss.png')
print(len(LOSS_es_loaded))
print(LOSS_es_loaded)